package operation;

import student.Student;
import student.StudentList;

import javax.swing.text.html.HTMLDocument;

public class FindAllOperation implements IOperation{
    @Override
    public void work(StudentList list) {
        System.out.println("查找全部");
        int sz = list.size();
        if(sz == 0){
            System.out.println("该学生表为空，没有消息");
            return;
        }
        for(int i = 0; i < sz; i++){
            Student stu = list.get(i);
            System.out.println(stu);
        }
    }
}
